package com.tsing.cli.starter.controller;

import com.tsing.cli.common.security.annotation.rest.AnonymousGetMapping;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试 Controller
 *
 * @author TheTsing
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {

    @AnonymousGetMapping
    public ResponseEntity<String> test() {
        log.info("Hello,World!");
        return ResponseEntity.ok("Hello,World!");
    }

}
